import request from "@/router/axios";
import { baseUrl } from "@/config/env";

export const getOwner = (data) =>
  request({
    url: baseUrl + "/api/owner",
    method: "get",
    params: data,
  });

export const eitOwner = (list) =>
  request({
    url: baseUrl + "/api/owner",
    method: "post",
    data: list,
  });

export const putOwner = (list) =>
  request({
    url: baseUrl + "/api/owner",
    method: "put",
    data: list,
  });
export const delOwner = (list) =>
  request({
    url: baseUrl + "/api/owner",
    method: "delete",
    data: list,
  });
